﻿using System;
using System.Windows.Forms;

namespace pheidippides.exceptionmanager.Forms
{
    public partial class ExceptionForm : Form
    {
        private readonly string _message;

        //ToDo: Form Reparieren 

        public ExceptionForm(String message, Exception exception, String lastLogEntrys)
        {
            _message = message;
            InitializeComponent();
            labelErrorText.Text = message;
            textBoxDescription.Text = exception + Environment.NewLine + Environment.NewLine + "Logging:" +
                                      Environment.NewLine + lastLogEntrys;
        }

        private void Button1Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}